<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>单线图在线浏览</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<%-- <script type="text/javascript" src="<%=basePath %>user/js/common.js"></script> --%>
<%
pageContext.setAttribute("basePath",basePath);
%>
<c:if test="${showCADMethd == '0' }">
	<script>
		location.href = "${fn:escapeXml(cadUrl)}";
	</script>
</c:if>
</head>

<body bgcolor="white">

	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box" style="overflow: hidden;">
		<c:if test="${empty cadUrl }">
			加载失败，请尝试刷新页面。
		</c:if>
		
		<c:if test="${showCADMethd == '1' }">
			<div>温馨提示：第一次使用请<a href="${basePath }user/m/cad.zip">点此下载</a>插件，如不能正常访问请使用IE浏览器。</div>
			<object id="OBJECT1" classid="clsid:AC53EFE4-94A7-47E6-BBFC-E9B9CF322299" codebase="dwgview.cab"
		        width="100%" height="100%">
		        <param name="_Version" value="65536">
		        <param name="_ExtentX" value="18521">
		        <param name="_ExtentY" value="13758">
		        <param name="_StockProps" value="0">
		        <param name="DrawingFile" value="${basePath }${cadUrl }">
		        <param name="ShowToobar" value="-1">
		        <param name="ShowLayoutBar" value="1">
		    </object>
		</c:if>
		<c:if test="${showCADMethd != '1' }">
			<c:if test="${!empty cadUrl }">
			<div id="exportimg" style="display: block;" class="progress_bar">
					<p>正在加载数据，请您稍后...</p>
					<div class="gif"><img alt="" src="<%=basePath %>user/images/downloading.gif">&nbsp;&nbsp;</div>
			</div>
			</c:if>
			<iframe id="cadIframe" frameborder="0" width="100%" height="550" src="${fn:escapeXml(cadUrl)}" onload="$('#exportimg').hide();"></iframe>
		</c:if>
	</div>
	<!-- 右侧内容_end -->
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>
